home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8236 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.its.com!usenet
  2. From: mastbrook@duff.com (Bill Mastbrook)
  3. Newsgroups: comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.misc
  4. Subject: Multiple instances of a VBX
  5. Date: Thu, 15 Feb 1996 23:03:28 GMT
  6. Organization: Information Technology Solutions, Inc.
  7. Message-ID: <4g0efd$1mb@news.its.com>
  8. NNTP-Posting-Host: duff30.duff.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11.  
  12. How do you differentiate between different instances of a VBX?
  13.  
  14. When multiple instances of a control are created, the same HCTL value
  15. is always passed to the main control procedure for all messages.  The
  16. HCTL value is used to generate events with the VBFireEvent function.
  17. So, without a unique HCTL value, how do I generate the events in the
  18. correct instance of the control?  
  19.  
  20. I have created a winsock VBX (with VC++ 1.5) and if multiple
  21. applications using the VBX are opened, all events generated within the
  22. VBX are passed to the last created instance.  
  23.  
  24. Also, are there any good references for creating VBX's, OCX's, or
  25. converting VBX's to OCX's?
  26.  
  27. Thanks
  28.  
  29.